<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<body>

    <form action="/pcs/porter/credentials/form" class="layui-card layui-form" data-auto="true" method="post" data-table-id="PorterCredentialsTable">

        <input type="hidden" name="id" th:if="${vo}" th:value="${vo.id}"/>
        <input type="hidden" name="porterId"  th:value="${porterId}"/>

        <div class="layui-card-body padding-15">

            <fieldset class="layui-bg-gray">
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-xs2 text-center padding-top-15">
                        <input type="hidden"  name="img" th:value="${vo?.img}" >
                        <script>$("[name=img]").uploadOneImageNew();</script>
                        <style>
                            .uploadimage, .uploadfile{
                                width: 78px!important;
                                height: 78px!important;
                            }
                        </style>
                    </div>
                    <div class="layui-col-xs10 layui-col-space15">
                        <div class="layui-col-xs6">
                            <label class="block relative">
                                <span class="help-label"><b>证书名称</b></span>
                                <input  name="title" th:value="${vo?.title}" required  vali-name="证书名称" placeholder="请输入证书名称" class="layui-input">
                            </label>
                        </div>

                        <div class="layui-col-xs6">
                            <label class="block relative">
                                <span class="help-label"><b>证书到期时间</b></span>
                                <input name="expireDate" th:value="${vo?.expireDateStr}" required vali-name="证书到期时间" placeholder="请输入证书到期时间" data-date-input class="layui-input">
                            </label>
                        </div>
                    </div>

                </div>

            </fieldset>


            <div class="text-center layui-form-actions1">
                <button class="layui-btn" type="submit">保存</button>
                <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>关闭</button>
            </div>

        </div>
    </form>


</body>
</html>